﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;

namespace WZ.Utils.WebHttp
{
    /// <summary>
    /// html表单异常
    /// </summary>
    [Serializable]
    public sealed class HtmlFormContextException : Exception
    {
        public HtmlFormContextException()
            : base()
        {
        }

        public HtmlFormContextException(String messgae)
            : base(messgae)
        {
        }

        public HtmlFormContextException(String message, Exception innerException)
            : base(message, innerException)
        {
        }

        private HtmlFormContextException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }

        public override string Message
        {
            get
            {
                String msg = base.Message;
                return "构造的表单无法提交。" + msg;
            }
        }
    }
}
